<?php

namespace app\yunda\validate;
use think\Validate;
class Postage extends Validate
{
    //定义验证规则
    protected $rule = [
        'sp|寄件省份' => 'require',
        'sc|寄件城市' => 'require',
        'sa|寄件地区' => 'require',
        'gp|收件省份' => 'require',
        'gc|收件城市' => 'require',
        'ga|收件地区' => 'require',
        'head_weight|寄件首重' => 'require|number|gt:0',
        'hw_money|寄件首重金额' => 'require|number|gt:0',
        'ow_money|寄件续重金额' => 'require|number|gt:0',
    ];

    //定义验证提示
    protected $message = [

    ];


}
